<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- <script src="./js/02.myModule.js" type="module"></script> -->
    <script type="module">
      // <!-- <script> -->
      import info from './js/02.myModule.js'
      console.log('info:', info)

      // 导入 按需导出
      import { food, cat, chicken as kunLeg, sayHi } from './js/02.myModule.js'

      console.log('food:', food)
      console.log('cat:', cat)
      // console.log('chicken:', chicken)
      console.log('kunLeg:', kunLeg)
      console.log('sayHi:', sayHi)
    </script>
  </body>
</html>
